<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
	<HEAD>
		<TITLE>论坛--回复列表</TITLE>
			
	</HEAD>
	<style type="text/css">	
	body{
background:#4BC1DD
}	
	table {  
*border-collapse: collapse; /* IE7 and lower */  
border-spacing: 0;  
width: 100%;  
}  
  
	.zebra td, .zebra th {  
padding: 10px;  
border-bottom: 1px solid #f2f2f2;  
}  
  
.zebra tbody tr:nth-child(even) {  
background: #f5f5f5;  
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
-moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;  
box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
}  
  
.zebra th {  
text-align: left;  
text-shadow: 0 1px 0 rgba(255,255,255,.5);  
border-bottom: 1px solid #ccc;  
background-color: #eee;  
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#eee));  
background-image: -webkit-linear-gradient(top, #f5f5f5, #eee);  
background-image: -moz-linear-gradient(top, #f5f5f5, #eee);  
background-image: -ms-linear-gradient(top, #f5f5f5, #eee);  
background-image: -o-linear-gradient(top, #f5f5f5, #eee);  
background-image: linear-gradient(top, #f5f5f5, #eee);  
}  
  
.zebra th:first-child {  
-moz-border-radius: 6px 0 0 0;  
-webkit-border-radius: 6px 0 0 0;  
border-radius: 6px 0 0 0;  
}  
  
.zebra th:last-child {  
-moz-border-radius: 0 6px 0 0;  
-webkit-border-radius: 0 6px 0 0;  
border-radius: 0 6px 0 0;  
}  
  
.zebra th:only-child{  
-moz-border-radius: 6px 6px 0 0;  
-webkit-border-radius: 6px 6px 0 0;  
border-radius: 6px 6px 0 0;  
}  
  
.zebra tfoot td {  
border-bottom: 0;  
border-top: 1px solid #fff;  
background-color: #f1f1f1;  
}  
  
.zebra tfoot td:first-child {  
-moz-border-radius: 0 0 0 6px;  
-webkit-border-radius: 0 0 0 6px;  
border-radius: 0 0 0 6px;  
}  
  
.zebra tfoot td:last-child {  
-moz-border-radius: 0 0 6px 0;  
-webkit-border-radius: 0 0 6px 0;  
border-radius: 0 0 6px 0;  
}  
  
.zebra tfoot td:only-child{  
-moz-border-radius: 0 0 6px 6px;  
-webkit-border-radius: 0 0 6px 6px  
border-radius: 0 0 6px 6px  
}  
</style>
	<BODY>
		<DIV>
			
		</DIV>
		<DIV class="h">
			您好：${sessionScope.user.username } &nbsp;| &nbsp;
			<A href="userLogout.action">退出系统</A>
		</DIV>
		<s:iterator value="tip2">
			<br />
			<DIV>
				&gt;&gt;
				<B><a href="getIndexInfo.action">论坛首页</a> </B> &gt;&gt;
				<B><a
					href='findTipsByBoard.action?boardId=<s:property value="board.boardid"/>'>帖子列表</a>
				</B> &gt;&gt;
				<B><a href="#">回复列表</a> </B>
			</DIV>
			<br />
			<DIV>
				<A href="addreply.jsp?topicId=<s:property value="tipid"/>">回复帖子 </A>
				<A href='addtip.jsp?boardId=<s:property value="board.boardid"/>'>发表帖子
				</A>
			</DIV>
			<DIV>
				<TABLE cellSpacing="0" cellPadding="0" width="100%">
					<TR>
						<TH class="h">
							本页主题:
							<s:property value="title" />
						</TH>
					</TR>
					<TR class="tr2">
						<TD>
							&nbsp;
						</TD>
					</TR>
				</TABLE>
			</DIV>
			<DIV class="t">
				<TABLE style="BORDER-TOP-WIDTH: 0px; TABLE-LAYOUT: fixed"
					cellSpacing="0" cellPadding="0" width="100%" class="zebra">
					<TR class="tr1">
						<TH style="WIDTH: 20%">
							<B>楼主:<s:property value="user.username" /> </B>
							<BR />
							
							<BR />
							
							
							<BR />
						</TH>
						<TH>
							<H4>
								<s:property value="title" />
							</H4>
							<DIV>
								<pre>
									<s:property value="content" escape="false" />
								</pre>
							</DIV>
							<DIV class="tipad gray">
								发表：[
								<s:property value="publishtime" />
								]
								<s:if test="%{realfile!=null}">
						附件：[<a
										href="filedown.action?download=<s:property value='makefile'/>"><s:property
											value="realfile" /> </a>]
						</s:if>
							</DIV>
						</TH>
					</TR>
				</TABLE>
			</DIV>
			<s:iterator value="allReplys">
				<DIV class="t">
					<TABLE style="BORDER-TOP-WIDTH: 0px; TABLE-LAYOUT: fixed"
						cellSpacing="0" cellPadding="0" width="100%">
						<TR class="tr1">
							<TH style="WIDTH: 20%">
								<B>回复人:<s:property value="user.username" /> </B>
								<BR />
								<BR />
								
								<BR />
								
								<BR />
							</TH>
							<TH>
								<H4>
									<s:property value="title" />
								</H4>
								<DIV>
									<pre><s:property value="content" escape="false" />
									</pre>
								</DIV>
								<DIV class="tipad gray">
									发表：[
									<s:property value="publishtime" />
									]
									<s:if test="%{realfile!=null}">
                                                               附件：[<a
											href="filedown.action?download=<s:property value='makefile'/>"><s:property
												value="realfile" /> </a>]
                        </s:if>
								</DIV>
							</TH>
						</TR>
					</TABLE>
				</DIV>
			</s:iterator>
			<table border="0" width="100%">
				<tr>
					<td align="right" height="30">
						共${requestScope.count}条回复 共${requestScope.pageCount}页
						当前第${requestScope.pageNo}页
						<a
							href="findReplyByTipid.action?topicId=<s:property value="tipid"/>&boardId=<s:property value="board.boardid"/>&pageNostr=1">第一页</a>
						<a
							href="findReplyByTipid.action?topicId=<s:property value="tipid"/>&boardId=<s:property value="board.boardid"/>&pageNostr=${requestScope.pageNo-1}">上一页</a>
						<a
							href="findReplyByTipid.action?topicId=<s:property value="tipid"/>&boardId=<s:property value="board.boardid"/>&pageNostr=${requestScope.pageNo+1}">下一页</a>
						<a
							href="findReplyByTipid.action?topicId=<s:property value="tipid"/>&boardId=boardId=<s:property value="board.boardid"/>&pageNostr=${requestScope.pageCount}">最后一页</a>
					</td>
				</tr>
			</table>
		</s:iterator>
		<div>
			<jsp:include page="bottom.jsp"></jsp:include>
		</div>
	</BODY>
</HTML>